package labox.innovation.gameserver.network.clientpackets;

import labox.innovation.gameserver.model.actor.instance.FuzePcInstance;

public final class RadarInfo extends L2GameClientPacket {

	private static final String _C__3A_ATTACKREQUEST = "[C] 3A RADARINFO";

	private byte _op;

	@Override
	protected void readImpl() {
		_op = readByte();
	}

	@Override
	protected void runImpl() {
		final FuzePcInstance activeChar = getClient().getActiveChar();
		if (activeChar == null)
			return;
		activeChar.getRadar().setDisable(_op == 1);
	}
	
	@Override
	public String getType() {
		return _C__3A_ATTACKREQUEST;
	}

}
